import { observer, Provider } from 'mobx-react'
import store from './stores/personInfoStore'
import PersonInfo from './modules/personInfo'
import React from 'react'
import {Spin} from 'antd'
class PersonIndex extends React.Component {
    constructor() {
        super()
    }
    state = { loading: false }
    toggle = (value) => {
        this.setState({ loading: value });
    }
    render() {
        return (
            <Spin spinning={this.state.loading}>
            <div>
                <Provider store={store}><PersonInfo toggle={this.toggle}/></Provider>
            </div>
            </Spin>
        );
    }
}
export default PersonIndex